package com.coincalf.dto;

import com.coincalf.entity.User;
import com.coincalf.framework.security.UserDetails;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author qiang
 */
@Mapper
public interface UserDetailsMapper {

    UserDetailsMapper INSTANCE = Mappers.getMapper(UserDetailsMapper.class);

    UserDetails toUserDetails(User user);
}